package xyz.eden.cloud.common.mybatis.support.fill.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import xyz.eden.cloud.common.core.enums.ICodeEnum;
import xyz.eden.cloud.common.web.did.enums.IdType;

/**
 * ID 生成类型
 */
@Getter
@AllArgsConstructor
public enum IdGenType implements ICodeEnum<IdType> {

    /**
     * 默认
     */
    DEFAULT(IdType.DEFAULT),
    /**
     * MT leaf
     */
    LEAF(IdType.LEAF),
    /**
     * snowflake
     */
    SNOWFLAKE(IdType.SNOWFLAKE),
    /**
     *
     */
    TINY_ID(IdType.TINY_ID),
    /**
     * UID
     */
    UID(IdType.UID),
    /**
     * UUID
     */
    UUID(IdType.UUID);

    private final IdType code;

}
